home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15173 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 75 | 72 73 6c 65 79 2e 69 62 |Path: hu|rsley.ib|
|00000010| 6d 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |m.com!ne|ws.From:|
|00000020| 20 4d 61 78 20 57 61 74 | 65 72 6d 61 6e 20 3c 64 | Max Wat|erman <d|
|00000030| 77 61 74 65 72 40 77 69 | 67 68 74 2e 68 75 72 73 |water@wi|ght.hurs|
|00000040| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 3e 0a 4e 65 77 |ley.ibm.|com>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 51 3a |ng.c.Sub|ject: Q:|
|00000070| 20 43 20 70 69 70 65 20 | 66 75 6e 63 74 69 6f 6e | C pipe |function|
|00000080| 0a 44 61 74 65 3a 20 57 | 65 64 2c 20 31 37 20 41 |.Date: W|ed, 17 A|
|00000090| 70 72 20 31 39 39 36 20 | 31 35 3a 32 32 3a 33 30 |pr 1996 |15:22:30|
|000000a0| 20 2b 30 31 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | +0100.O|rganizat|
|000000b0| 69 6f 6e 3a 20 49 42 4d | 20 55 4b 20 4c 61 62 6f |ion: IBM| UK Labo|
|000000c0| 72 61 74 6f 72 69 65 73 | 20 4c 74 64 2e 0a 4d 65 |ratories| Ltd..Me|
|000000d0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 33 31 37 34 46 |ssage-ID|: <3174F|
|000000e0| 45 41 36 2e 34 31 43 36 | 40 77 69 67 68 74 2e 68 |EA6.41C6|@wight.h|
|000000f0| 75 72 73 6c 65 79 2e 69 | 62 6d 2e 63 6f 6d 3e 0a |ursley.i|bm.com>.|
|00000100| 52 65 70 6c 79 2d 54 6f | 3a 20 64 77 61 74 65 72 |Reply-To|: dwater|
|00000110| 40 68 75 72 73 6c 65 79 | 2e 69 62 6d 2e 63 6f 6d |@hursley|.ibm.com|
|00000120| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000130| 73 74 3a 20 68 75 6e 74 | 65 72 73 2e 68 75 72 73 |st: hunt|ers.hurs|
|00000140| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 0a 4d 69 6d 65 |ley.ibm.|com.Mime|
|00000150| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000160| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000170| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000180| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|00000190| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|000001a0| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|000001b0| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 31 20 |r: Mozil|la 2.01 |
|000001c0| 28 58 31 31 3b 20 49 3b | 20 41 49 58 20 32 29 0a |(X11; I;| AIX 2).|
|000001d0| 0a 49 73 20 74 68 65 72 | 65 20 61 20 66 75 6e 63 |.Is ther|e a func|
|000001e0| 74 69 6f 6e 20 61 63 63 | 65 73 73 69 62 6c 65 20 |tion acc|essible |
|000001f0| 66 72 6f 6d 20 43 20 74 | 68 61 74 20 61 6c 6c 6f |from C t|hat allo|
|00000200| 77 73 20 79 6f 75 20 74 | 6f 20 77 72 69 74 65 20 |ws you t|o write |
|00000210| 74 6f 20 74 68 65 0a 73 | 74 64 69 6e 20 6f 66 20 |to the.s|tdin of |
|00000220| 61 20 63 6f 6d 6d 61 6e | 64 20 61 6e 64 20 72 65 |a comman|d and re|
|00000230| 61 64 20 66 72 6f 6d 20 | 74 68 65 20 73 74 64 6f |ad from |the stdo|
|00000240| 75 74 20 6f 66 20 74 68 | 61 74 20 63 6f 6d 6d 61 |ut of th|at comma|
|00000250| 6e 64 3f 20 65 67 20 3a | 2d 0a 0a 69 6e 74 20 69 |nd? eg :|-..int i|
|00000260| 3b 0a 46 49 4c 45 20 2a | 66 70 20 3d 20 70 6f 70 |;.FILE *|fp = pop|
|00000270| 65 6e 28 20 22 73 6f 72 | 74 22 2c 20 72 77 20 29 |en( "sor|t", rw )|
|00000280| 3b 0a 0a 70 72 69 6e 74 | 66 28 20 22 75 6e 73 6f |;..print|f( "unso|
|00000290| 72 74 65 64 20 6e 75 6d | 62 65 72 73 20 3a 2d 5c |rted num|bers :-\|
|000002a0| 6e 22 20 29 3b 0a 0a 66 | 6f 72 20 28 69 3d 30 3b |n" );..f|or (i=0;|
|000002b0| 20 69 3c 31 30 30 3b 20 | 69 2b 2b 29 0a 20 20 69 | i<100; |i++). i|
|000002c0| 6e 74 20 6e 20 3d 20 72 | 61 6e 64 28 29 3b 0a 20 |nt n = r|and();. |
|000002d0| 20 66 70 72 69 6e 74 66 | 28 20 66 70 2c 20 22 25 | fprintf|( fp, "%|
|000002e0| 64 5c 6e 22 2c 20 6e 20 | 29 3b 0a 20 20 70 72 69 |d\n", n |);. pri|
|000002f0| 6e 74 66 28 20 22 25 64 | 5c 6e 22 2c 20 6e 20 29 |ntf( "%d|\n", n )|
|00000300| 3b 0a 7d 0a 0a 70 72 69 | 6e 74 66 28 20 22 73 6f |;.}..pri|ntf( "so|
|00000310| 72 74 65 64 20 6e 75 6d | 62 65 72 73 20 3a 2d 5c |rted num|bers :-\|
|00000320| 6e 22 20 29 3b 0a 0a 66 | 6f 72 20 28 69 3d 30 3b |n" );..f|or (i=0;|
|00000330| 20 69 3c 31 30 30 3b 20 | 69 2b 2b 29 20 7b 0a 20 | i<100; |i++) {. |
|00000340| 20 69 6e 74 20 6e 3b 0a | 20 20 66 73 63 61 6e 66 | int n;.| fscanf|
|00000350| 28 20 66 70 2c 20 22 25 | 64 5c 6e 22 2c 20 26 6e |( fp, "%|d\n", &n|
|00000360| 20 29 3b 0a 20 20 70 72 | 69 6e 74 66 28 20 22 25 | );. pr|intf( "%|
|00000370| 64 5c 6e 22 2c 20 6e 20 | 29 3b 0a 7d 0a 0a 0a 2d |d\n", n |);.}...-|
|00000380| 2d 20 0a 20 20 20 20 5f | 5f 5f 20 20 20 20 20 20 |- . _|__ |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003a0| 6d 61 69 6c 74 6f 3a 64 | 77 61 74 65 72 40 68 75 |mailto:d|water@hu|
|000003b0| 72 73 6c 65 79 2e 69 62 | 6d 2e 63 6f 6d 0a 20 20 |rsley.ib|m.com. |
|000003c0| 2f 20 20 2f 20 20 2f 20 | 20 5f 20 20 20 20 20 20 |/ / / | _ |
|000003d0| 20 2f 20 20 20 20 20 2f | 20 20 5f 20 20 5f 5f 20 | / /| _ __ |
|000003e0| 5f 5f 20 20 20 5f 20 20 | 20 5f 5f 20 20 20 5f 0a |__ _ | __ _.|
|000003f0| 20 2f 20 20 2f 20 20 2f | 20 2f 5f 2f 20 7c 2f 20 | / / /| /_/ |/ |
|00000400| 20 2f 20 20 2f 20 20 2f | 20 2f 5f 2f 20 20 2f 20 | / / /| /_/ / |
|00000410| 20 2f 5f 20 20 20 2f 5f | 2f 20 2f 20 2f 20 2f 20 | /_ /_|/ / / / |
|00000420| 2f 5f 2f 20 2f 7c 20 2f | 0a 2f 20 20 2f 20 20 2f |/_/ /| /|./ / /|
|00000430| 20 2f 20 20 2f 20 2f 7c | 20 20 2f 5f 2f 5f 2f 20 | / / /|| /_/_/ |
|00000440| 2f 20 20 2f 20 20 2f 20 | 20 2f 5f 20 20 2f 20 20 |/ / / | /_ / |
|00000450| 7c 20 20 2f 20 2f 20 2f | 20 2f 20 20 2f 20 2f 20 || / / /| / / / |
|00000460| 7c 2f 0a | ||/. | |
+--------+-------------------------+-------------------------+--------+--------+